#include "Stack.h"
#include "Queue.h"



//void Test1()
//{
//	ST s;
//	StackInit(&s);
//	StackPush(&s, 1);
//	StackPush(&s, 2);
//	StackPush(&s, 3);
//	StackPush(&s, 4);
//	StackPush(&s, 5);
//	StackPrint(&s);
//	StackPop(&s);
//	StackPop(&s);
//	StackPop(&s);
//	StackPrint(&s);
//	int top = StackTop(&s);
//	printf("%d\n", top);
//	printf("%d\n", StackSize(&s));
//	StackDestroy(&s);
//
//}


void TestQueue()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	printf("%d\n", QueueSize(&q));
	printf("%d\n", QueueEmpty(&q));
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	printf("%d\n", QueueSize(&q));
	printf("%d\n", QueueEmpty(&q));
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));
	QueueDestroy(&q);
}

int main()
{
	//Test1();

	TestQueue();
}